package com.diaohw.module.log.service;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.diaohw.module.log.obj.entity.DbLog;
import com.diaohw.module.log.obj.entity.RequestLog;
import com.diaohw.module.log.obj.query.LogQuery;
import com.diaohw.platform.common.obj.page.PageResultVo;

import java.util.List;

public interface LogService {
    /**
     * 查询http请求日志
     */
    PageResultVo<RequestLog> httpList(LogQuery query);

    /**
     * 查询SQL执行日志
     */
    PageResultVo<DbLog> dbList(LogQuery query);

    /**
     * 删除日志
     */
    Boolean deleteRequestLog(LogQuery query);

    /**
     * 删除日志
     */
    Boolean deleteRequestLog(List<String> logIds);

    LambdaQueryWrapper<RequestLog> createWrapper(LogQuery query);
}
